using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Sharp.Framework.Services
{
    [Serializable]
    public class TaskItem
    {
        [XmlAttribute("name")] 
        public string Name { get; set; }
        [XmlAttribute("description")] 
        public string Description { get; set; }
        [XmlAttribute("type")] 
        public int Type { get; set; }
        [XmlAttribute("class")] 
        public string Class { get; set; }
        [XmlAttribute("queuetype")] 
        public string QueueType { get; set; }
        [XmlAttribute("queuename")]
        public string QueueName { get; set; }
        [XmlAttribute("user")]
        public string QueueUser { get; set; }
        [XmlAttribute("password")]
        public string QueuePassword { get; set; }
        [XmlAttribute("repeat")] 
        public bool Repeat { get; set; }
        [XmlAttribute("interval")] 
        public int Interval { get; set; }
        [XmlAttribute("hour")]
        public int Hour { get; set; }
        [XmlAttribute("minute")]
        public int Minute { get; set; }
        [XmlAttribute("week")]
        public int Week { get; set; }
        [XmlAttribute("day")]
        public int Day { get; set; }


        [XmlArray("paras")]
        [XmlArrayItem("add")]
        public TaskItempara[] Paras { get; set; }
    }
}